Skip to content

Conversation

@leandroberetta
Copy link
Contributor

Description

Adds trackedKinds field in FLP to look for valid owners of resources.

See https://issues.redhat.com/browse/NETOBSERV-2146.

Dependencies

n/a

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Will this change affect NetObserv / Network Observability operator? If not, you can ignore the rest of this checklist.
  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

To run a perfscale test, comment with: /test flp-node-density-heavy-25nodes

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Nov 10, 2025

@leandroberetta: This pull request references NETOBSERV-2146 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

Description

Adds trackedKinds field in FLP to look for valid owners of resources.

See https://issues.redhat.com/browse/NETOBSERV-2146.

Dependencies

n/a

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Will this change affect NetObserv / Network Observability operator? If not, you can ignore the rest of this checklist.
  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
  • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
  • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
  • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
  • Standard QE validation, with pre-merge tests unless stated otherwise.
  • Regression tests only (e.g. refactoring with no user-facing change).
  • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

To run a perfscale test, comment with: /test flp-node-density-heavy-25nodes

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link

openshift-ci bot commented Nov 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jpinsonneau for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@leandroberetta leandroberetta changed the title NETOBSERV-2146: Add the ability to track ownership NETOBSERV-2146: Add the ability to track ownership beyond ReplicaSet Nov 10, 2025
deployments cache.SharedIndexInformer
virtualMachineInstances cache.SharedIndexInformer
virtualMachines cache.SharedIndexInformer
gateways cache.SharedIndexInformer
Copy link
Member

@jotak jotak Nov 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need the Gateway informer here? Currently we have only the RS informer which is sufficient to get the "n+1" hop (the replicaset parents), I'd imagine it could be the same for gateway, having the RS informer being sufficient to get Deployments, so having just Deployment would be sufficient to know about the parent gateway ?

Same question for VM / VMI although I don't know the actual relationships in that case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's true about Gateway, not needed so I removed it. Also, I removed support for VirtualMachines but I can re add it.

This is for the Gateway epic but if we want the VirtualMachine stuff, we can add it, although I don't know how to test it yet. What do you think? that can me added in a follow up PR on the custome icons issue?.

@jotak
Copy link
Member

jotak commented Nov 13, 2025

Review in progress, the overall approach looks good to me 👍
I'll continue to review asap

@leandroberetta
Copy link
Contributor Author

Review in progress, the overall approach looks good to me 👍 I'll continue to review asap

Thanks @jotak, I will investigate your questions about the new informers too.

@jotak jotak added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 18, 2025
@github-actions
Copy link

New image:
quay.io/netobserv/flowlogs-pipeline:5686549

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=5686549 make set-flp-image

// Initialize additional informers based on trackedKinds configuration
for _, kind := range cfg.trackedKinds {
switch kind {
case "Deployment", "Gateway":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if trackedKinds = ["ReplicaSet", "Deployment", "Gateway"] , then initDeploymentInformer is going to be called twice.
Can't we remove Gateway from this switch, and assume if someone wants to track Gateways they need anyway to also track Deployment ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and we could move the ReplicaSet informer creation in this switch, for consistency, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right, thanks for the catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the ReplicaSet, I would not move it under the switch, because if not trackedkinds are informed (missing the configuration), it would behave as before, just tracking N+1 from the ReplicaSet.

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 20, 2025
@openshift-ci
Copy link

openshift-ci bot commented Nov 20, 2025

@leandroberetta: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/qe-e2e-tests 3413283 link false /test qe-e2e-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants